home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / program / swagd_f.zip / FAQ.SWG / 0033_BASM Function Returns.pas < prev    next >
Pascal/Delphi Source File  |  1995-03-03  |  882b  |  16 lines

  1. {
  2. > Does anyone know how TP returns a string from a function?  Does it
  3. > return a  pointer to the string in AX:DX?  I'm writing a data
  4. > compression for a science  project, and I'm trying to optimize my
  5. > Pascal into BASM as much as possible to  speed things up. Thanks.
  6. }
  7.  
  8. {───────────────────────────────────────────────────────────────────────}
  9. {                Notes on Assembler returns with functions              }
  10. {                                                                       }
  11. {  AL: byte/char/shortint/boolean results                               }
  12. {  AX: word/integer results                                             }
  13. {  AX:DX: 4 byte results (pointer/longint)                              }
  14. {  AX:BX:DX 6 byte results (real)                                       }
  15. {═══════════════════════════════════════════════════════════════════════}
  16.